
package com.ly.credit.service;


import com.ly.credit.dao.ApiAttrDao;
import com.ly.credit.entity.Api;
import com.ly.credit.entity.ApiAttr;
import com.ly.credit.entity.User;
import com.ly.credit.entity.UserApi;
import com.ly.credit.util.AdResult;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

@Service("apiAttrService")
@Transactional
public class ApiAttrServiceImpl implements ApiAttrService {
	@Resource
	private ApiAttrDao apiAttrDao;
	@Transactional
	public AdResult getByApiId(Integer apiId) {

		AdResult result = new AdResult();
		List<ApiAttr> apiAttrList = apiAttrDao.getByApiId(apiId);

			result.setStatus(1);
			result.setData(apiAttrList);
			result.setMsg("获取成功!");
			return result;
		}

	}